package com.sizu.mapper;


import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.sizu.common.dto.UserDto;
import com.sizu.entity.TUser;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Mht
 * @since 2020-02-22
 */
@Repository
public interface TUserMapper extends BaseMapper<TUser> {

    List<TUser> getUserAndRoleList(@Param("userDto") UserDto userDto);

    TUser findByUserName(@Param("user") UserDto userDto);
}
